﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMLSchemaExtractor.Generator
{
    abstract class XsdObject
    {
        private string name;
        private string type;
        private string value;
        private int occurrence;
        private bool isDefault;
        private bool isFixed;

        public XsdObject()
        {
            this.name = "";
            this.type = "";
            this.value = "";
            this.occurrence = 0;
            this.isDefault = false;
            this.isFixed = false;
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        public string Value
        {
            get { return this.value; }
            set { this.value = value; }
        }

        public int Occurrence
        {
            get { return occurrence; }
            set { occurrence = value; }
        }

        public bool IsDefault
        {
            get { return isDefault; }
            set { isDefault = value; }
        }

        public bool IsFixed
        {
            get { return isFixed; }
            set { isFixed = value; }
        }
    }
}
